package org.edu.modules.survey.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


@TableName("ve_addons_survey_question_type")
@ApiModel(value = "ve_addons_survey_question_type对象", description = "问卷题目类型")
public class VeAddonsSurveyQuestionType
        implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty("说明")
    private String remark;

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionType setId(Integer id) {
        this.id = id;
        return this;
    }

    @ApiModelProperty("模板文件")
    private String tplfile;
    @ApiModelProperty("排序")
    private Integer listsort;
    @ApiModelProperty("图标")
    private Integer ico;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionType setName(String name) {
        this.name = name;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionType setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionType setTplfile(String tplfile) {
        this.tplfile = tplfile;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionType setListsort(Integer listsort) {
        this.listsort = listsort;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionType setIco(Integer ico) {
        this.ico = ico;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionType setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionType setPlaceId(Integer placeId) {
        this.placeId = placeId;
        return this;
    }

    public String toString() {
        return "VeAddonsSurveyQuestionType(id=" + getId() + ", name=" + getName() + ", remark=" + getRemark() + ", tplfile=" + getTplfile() + ", listsort=" + getListsort() + ", ico=" + getIco() + ", status=" + getStatus() + ", placeId=" + getPlaceId() + ")";
    }


    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof org.edu.modules.survey.entity.VeAddonsSurveyQuestionType)) return false;
        org.edu.modules.survey.entity.VeAddonsSurveyQuestionType other = (org.edu.modules.survey.entity.VeAddonsSurveyQuestionType) o;
        if (!other.canEqual(this)) return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) return false;
        Object this$listsort = getListsort(), other$listsort = other.getListsort();
        if ((this$listsort == null) ? (other$listsort != null) : !this$listsort.equals(other$listsort)) return false;
        Object this$ico = getIco(), other$ico = other.getIco();
        if ((this$ico == null) ? (other$ico != null) : !this$ico.equals(other$ico)) return false;
        Object this$status = getStatus(), other$status = other.getStatus();
        if ((this$status == null) ? (other$status != null) : !this$status.equals(other$status)) return false;
        Object this$placeId = getPlaceId(), other$placeId = other.getPlaceId();
        if ((this$placeId == null) ? (other$placeId != null) : !this$placeId.equals(other$placeId)) return false;
        Object this$name = getName(), other$name = other.getName();
        if ((this$name == null) ? (other$name != null) : !this$name.equals(other$name)) return false;
        Object this$remark = getRemark(), other$remark = other.getRemark();
        if ((this$remark == null) ? (other$remark != null) : !this$remark.equals(other$remark)) return false;
        Object this$tplfile = getTplfile(), other$tplfile = other.getTplfile();
        return !((this$tplfile == null) ? (other$tplfile != null) : !this$tplfile.equals(other$tplfile));
    }

    protected boolean canEqual(Object other) {
        return other instanceof org.edu.modules.survey.entity.VeAddonsSurveyQuestionType;
    }

    public int hashCode() {
        int PRIME = 59;
        Integer result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $listsort = getListsort();
        result = result * 59 + (($listsort == null) ? 43 : $listsort.hashCode());
        Object $ico = getIco();
        result = result * 59 + (($ico == null) ? 43 : $ico.hashCode());
        Object $status = getStatus();
        result = result * 59 + (($status == null) ? 43 : $status.hashCode());
        Object $placeId = getPlaceId();
        result = result * 59 + (($placeId == null) ? 43 : $placeId.hashCode());
        Object $name = getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        Object $remark = getRemark();
        result = result * 59 + (($remark == null) ? 43 : $remark.hashCode());
        Object $tplfile = getTplfile();
        return result * 59 + (($tplfile == null) ? 43 : $tplfile.hashCode());
    }


    public Integer getId() {
        return this.id;
    }

    public String getName() {
        /* 40 */
        return this.name;
    }

    public String getRemark() {
        /* 43 */
        return this.remark;
    }

    public String getTplfile() {
        /* 46 */
        return this.tplfile;
    }

    public Integer getListsort() {
        return this.listsort;
    }

    public Integer getIco() {
        /* 52 */
        return this.ico;
    }

    public Integer getStatus() {
        /* 55 */
        return this.status;
    }

    public Integer getPlaceId() {
        /* 58 */
        return this.placeId;
    }
}



